<table class="adminForms">
	<tr>
		<td>
			File <%= mark_field_as :required %>:
		</td>
		<td>
			<%= file_field "media", :file %>

		</td>
	</tr>
  <tr>
		<td>
			<%= Media.l_attr('media type') %> <%= mark_field_as :required %>:
		</td>
		<td>
    <%= select(:media, :media_type, Media::OPTIONS) %>
		</td>
	</tr>
	<tr>
		<td>
			Caption <%= mark_field_as :required %>:
		</td>
		<td>
      <% unless new_generic_media.nil? %>
        <%= new_generic_media.text_area :caption, {:rows => 3} %>
      <% else %>
        <%= text_area_tag :caption, nil, {:rows => 3} %>
      <% end %>
		</td>
	</tr>
</table>
<%= submit_tag l(:common, 'upload'), :onclick => "Element.hide('noMedia')" %>